"use strict"

/**
 * 贵阳市政府采购网爬虫
 *  
 */

var Base = require("./base");
var gy_spider = new Base();
gy_spider.name = "贵阳市采购网";
gy_spider.page = 5;
gy_spider.encode = "GBK";

gy_spider.getPageUrl = function (pg) {
    return "http://www.gygp.gov.cn/list-12-" + pg + ".html";
};

gy_spider.getItems = function ($) {
    var items = [];
    $(".right_top_content ul li a").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.text();
        item.url = e.attr("href");
        item.source = gy_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = gy_spider;